home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Graphics / Graphic Demos / PseudoPS / PseudoPS.doc < prev    next >
Encoding:
Text File  |  1987-08-30  |  2.0 KB  |  46 lines  |  [TEXT/Earl]

  1. PseudoPS is a very small PostScript interpreter.  This version reads PostScript
  2. from a text file and displays the graphics to the Macintosh screen.  Logically,
  3. there is really only one command (besides Quit).  By using the Open command
  4. from the File menu, one can select the the PostScript file to be displayed.  As
  5. a test you might want to open the file “PostScript.demo”. 
  6.  
  7. The PostScript subset includes: moveto, rmoveto, lineto, rlineto, arc,
  8. translate, scale, setlinewidth, setgray, newpath, closepath, fill, stroke,
  9. scalefont, and show.  If an unknown command is encountered an %offending
  10. command message is printed to the file "PS.errors".  However, the program
  11. continues so things can get messed up in a hurry -- if for instance, paths are
  12. not explicitly closed or if an unknown command leaves the stack in a unknown
  13. state.  A minor irritation is that if a file has already been displayed and
  14. it’s window has been closed, the file’s window must first be selected (from the
  15. window menu) before it can be displayed again. 
  16.  
  17. The goal of this project was to make a "movie" on the Macintosh and not to make
  18. an accurate rendition of PostScript.  It was kind of fun programming for the
  19. Mac, though, wished I could do it more often.  Even though this program will
  20. handle only a small subset of the PostScript language, it has been useful to me
  21. and I hope that you may find it useful as well.  Oh yes, please freely
  22. distribute and improve it.  If you do improve it, please mail the changes back
  23. to me and I’ll try to maintain the archived version. 
  24.  
  25. /*
  26.  *  PseudoPS -- a small PostScript interpreter (1987)
  27.  *
  28.  *  Written by        Craig E Rasmussen
  29.  *            Center for Atmospheric and Space Science
  30.  *            Utah State University
  31.  *            Logan, Utah 84322-4405
  32.  *            (801) 750-2967
  33.  *
  34.  *    email        - cer@star.stanford.edu
  35.  *                - theory::craig on the SPAN network
  36.  *
  37.  *  with the use of SimpleTools.c  (c) Erik Kilk 1986
  38.  * 
  39.  *  Link with LightSpeedC modules
  40.  *      -    MacTraps
  41.  *      -    math
  42.  *      -    stdio
  43.  *      -    strings
  44.  *      -    unix
  45.  */
  46.